import request from '@/utils/request'

export function getLastSetting() {
  return request({
    url: '/smy/distributionSetting/getLastSetting',
    method: 'get',
  })
}

export function addSetting(data) {
  return request({
    url: '/smy/distributionSetting',
    method: 'post',
    data: data
  })
}

export function updateSetting(data) {
  return request({
    url: '/smy/distributionSetting',
    method: 'put',
    data: data
  })
}
